﻿using System;

namespace MuYue.ORM.Attributes {
    /// <summary>
    /// 数据表约束信息
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class DbTableAttribute : Attribute {

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="tableName">表格名</param>
        public DbTableAttribute(string tableName) {
            this.TabelName = tableName;
        }
        /// <summary>
        /// 数据表的名字
        /// </summary>
        public string TabelName { set; get; }
    }
}
